<?php
header("Content-type: application/json");


require_once("components/config.inc.php");
require_once("model/Player.php");
require_once("bizlayer/player_mgmt.php");

if(isset($_GET["playerid"]) && intval($_GET["playerid"])){
	$p = new Player();
	$p = PlayerMgmt::getPlayerById($_GET["playerid"]);
	
	echo $p->toJson();		
}
?>
